 package com.thtfpc.stroke.screening.bean.comm;

 import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


@ApiModel(description = "返回公共响应")
public class CommResponse<T> {
        private T data;
        @ApiModelProperty(name = "返回服务code值")
        private String code = "0";
        @ApiModelProperty(name = "返回服务器信息")
        private String msg = "Success";

        public void setData(T data) { this.data = data; }

        public T getData() { return this.data; }

        public CommResponse(T t) {
    /* 23 */     this.data = t;
    /*    */   }

        public String getCode() {
    /* 27 */     return this.code;
    /*    */   }

        public CommResponse(String code, String msg) {
            this.code = code;
            this.msg = msg;
       }

      public void setCode(String code) {
    /* 36 */     this.code = code;
    /*    */   }

      public String getMsg() {
    /* 40 */     return this.msg;
    /*    */   }

      public void setMsg(String msg) {
/* 44 */     this.msg = msg;
/*    */   }

       public CommResponse(ServerCode severCode) {
         this.code = severCode.getCode();
         this.msg = severCode.getMsg();
       }

       public CommResponse() {

       }
}


